﻿<%@ Page Title="" Language="C#" MasterPageFile="~/iFrameMasterPage.master" AutoEventWireup="true" CodeFile="iFarmeAdmin_SiteMap.aspx.cs" Inherits="iFarmeAdmin_SiteMap" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" Runat="Server">
<script type="text/javascript">
    function ShowAlert() {
        $('#ctl00_cphHead_lblClientStatus').removeClass();
    }
    </script>

<table style="width: 100%;" cellpadding ="0" cellspacing ="2">
    <tr>
        <td style ="width :235px">
            &nbsp;</td>
        <td style ="width:8px">
            &nbsp
        </td>
        <td>
            
        <asp:Label ID=lblClientStatus CssClass ="<%# GetStateVisible() %>" runat="server" 
        Text="Есть несохраненные данные" Font-Bold="True" Font-Size="XX-Small" 
        ForeColor="#FF5050"></asp:Label>
        </td>
        
        <td style ="text-align :right ">                
              
              <asp:Button ID=BtnSave runat="server" Text="Сохранить" CssClass ="btn"  OnClick ="SaveButton_Click"  />
        </td>
    </tr>
    
</table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" Runat="Server">
<script language ="javascript" type ="text/javascript" >

    function Redirect(url) {

        document.location = url;
    }
</script>
    
    <table width="100%" cellpadding ="0" cellspacing ="0">
    <tr id=Tr1  runat="server" style="height:25px">
            <td  style="width :20px" class="grd_td_head" >
                &nbsp;
            </td>
            <td   class="grd_td_head" >
                Элемент 
            </td>                        
            <td style="width :150px"  class="grd_td_head">
                Тип элемента
            </td>
            <td  style="width :300px; text-align :left " class="grd_td_head" >                
                Доступен
            </td>                                 
        </tr>             
     </table>
            
    <table width ="100%" cellpadding ="0" cellspacing ="0">
    <asp:ListView ID="lvDiscounts" runat="server" 
            onitemdatabound="lvDiscounts_ItemDataBound" >
    
    <LayoutTemplate  >  
    </tr><tr runat="server" id="itemPlaceholder" ></tr>              
    </LayoutTemplate>
  
    <ItemTemplate >
    <tr runat ="server"   style ="height:15px" >
    <td class ="grd_td_item" onmouseover ="GrdItemOnMouseOver(this);" onmouseout ="GrdItemOnMouseOut(this);">
     <div style = "width:100%;" > 
    <table width="100%" cellpadding ="0" cellspacing ="0">
    <tr id=Tr1  runat="server" style="height:25px">
            <td  style="width :20px; text-align :center">
                <asp:Image ID=Image1 runat="server"  ImageUrl ="~/images/grippy.png"/>
            </td>
            <td   >
                <%# (((string)Eval("Describe")).Length == 0 ? "&nbsp" : (string)Eval("Describe"))%>                                
            </td>                        
            <td style="width :150px"  >
                <%# GetPageType((string)Eval("PageType"))%>
            </td>
            <td  style="width :300px; text-align :right " >                
                <asp:HiddenField ID="hfID" Value =<%# (string)Eval("ID") %> runat="server" />
                <asp:CheckBoxList ID="chRoleList"                   
                    RepeatDirection ="Horizontal" 
                    runat="server">
                </asp:CheckBoxList>
            </td>                                 
        </tr>             
     </table>
     </div> 
     </td> 
     </tr> 
        
    </ItemTemplate>        
    </asp:ListView>
    </table>
</asp:Content>

